
package com.student_exam_system.service.impl;

import com.student_exam_system.dao.PaperQuestionMapper;
import com.student_exam_system.service.PaperQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author fire'ge
 */
@Service("paperQuestionServiceImpl")
public class PaperQuestionServiceImpl implements PaperQuestionService {
    final
    PaperQuestionMapper paperQuestionMapper;

    public PaperQuestionServiceImpl(PaperQuestionMapper paperQuestionMapper) {
        this.paperQuestionMapper = paperQuestionMapper;
    }




    @Override
    public int getPqId(int paperId, int questionId) {
        return paperQuestionMapper.queryPaperQuestionByPaperAndQuestion(questionId,paperId);
    }
}
